package com.yunban.project.api.text_check.dto;

import com.yunban.project.api.text_check.enums.CorrectionModel;
import com.yunban.project.api.text_check.utils.TextCorrectionMatchResp;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author: lijiajun
 * @date: 2024-11-22
 * @version: 1.0
 */
@Data
@AllArgsConstructor
@Schema(description = "纠错响应")
public class CorrectionResp implements Serializable {
    @Schema(description = "纠错模型")
    private CorrectionModel modelSource;

    @Schema(description = "文本顺序")
    private int textOrder;

    @Schema(description = "纠错文本")
    private String text;

    private String correctionText;

    @Schema(description = "文本差异列表")
    private List<TextCorrectionMatchResp> diffList = new ArrayList<>();
}
